import RequestHelper from '../utils/request-helpr'
import BaseUrl from './BaseUrl'

const systemPath = BaseUrl.getDefaultBaseUrl()
const modulePath = systemPath + '/mrm-admin/common'
// 定义Request工具类实例
const requestHelper = new RequestHelper(modulePath)
export const apiCommon = {
  get: requestHelper.get,
  post: requestHelper.post,
  // 查询地区
  arealist: requestHelper.post('/area/tree'),
  // 电台查询
  radio: requestHelper.get('/radio/options'),
  // 频率查询
  channel: requestHelper.get('/channel/list'),
}
